package com.dynamixsoftware.printershare;

import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.database.Cursor;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.BitmapFactory.Options;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build.VERSION;
import android.os.Bundle;
import android.provider.Contacts.ContactMethods;
import android.provider.Contacts.Organizations;
import android.provider.Contacts.People;
import android.provider.Contacts.Phones;
import android.provider.ContactsContract.CommonDataKinds.Email;
import android.provider.ContactsContract.CommonDataKinds.Im;
import android.provider.ContactsContract.CommonDataKinds.Organization;
import android.provider.ContactsContract.CommonDataKinds.Phone;
import android.provider.ContactsContract.CommonDataKinds.StructuredPostal;
import android.provider.ContactsContract.Contacts;
import android.provider.ContactsContract.Data;
import java.util.StringTokenizer;
import java.util.Vector;

public class ActivityPrintContacts
  extends ActivityPrintText
{
  private String dat;
  private Vector<Object[]> data;
  private Impl impl = Impl.getImpl();
  
  protected void createPages()
  {
    initPage();
    label695:
    label702:
    label709:
    label1483:
    if (this.data == null)
    {
      this.data = new Vector();
      StringTokenizer localStringTokenizer = new StringTokenizer(this.dat, ",");
      Bitmap localBitmap2 = BitmapFactory.decodeResource(getResources(), 2130837533);
      label587:
      label716:
      label1490:
      while (localStringTokenizer.hasMoreTokens())
      {
        String str6 = localStringTokenizer.nextToken();
        Uri localUri1 = Uri.withAppendedPath(Impl.CONTACTS_CONTENT_URI, str6);
        Cursor localCursor1 = getContentResolver().query(localUri1, Impl.CONTACTS_PROJECTION, null, null, null);
        label1243:
        if (localCursor1 != null)
        {
          localCursor1.moveToNext();
          String str7 = localCursor1.getString(0);
          if (str7 == null) {}
          Object localObject;
          for (String str8 = "";; str8 = str7.trim())
          {
            int i1 = localCursor1.getInt(1);
            boolean bool = localCursor1.isNull(2);
            localObject = null;
            if (!bool) {}
            try
            {
              Bitmap localBitmap3 = this.impl.loadContactPhoto(this, localCursor1.getLong(2), null);
              localObject = localBitmap3;
            }
            catch (Exception localException)
            {
              Cursor localCursor2;
              for (;;)
              {
                Vector localVector1;
                Object[] arrayOfObject2;
                Uri localUri2;
                int i2;
                localException.printStackTrace();
                App.reportThrowable(localException);
                localObject = null;
                continue;
                String str29 = "";
                continue;
                String str31 = "";
              }
              localCursor2.close();
              Uri localUri3 = Uri.withAppendedPath(localUri1, Impl.EMAILS_DIRECTORY);
              Cursor localCursor3 = getContentResolver().query(localUri3, Impl.EMAILS_PROJECTION, Impl.EMAILS_SELECTION, null, null);
              int i3 = 0;
              if (localCursor3 == null) {
                break label716;
              }
              if (!localCursor3.moveToNext()) {
                break label709;
              }
              if (i3 != 0) {
                break label587;
              }
              Vector localVector11 = this.data;
              Object[] arrayOfObject12 = new Object[2];
              arrayOfObject12[0] = Integer.valueOf(1);
              arrayOfObject12[1] = getResources().getString(2131099815);
              localVector11.add(arrayOfObject12);
              i3 = 1;
              String str24 = this.impl.getEmailTypeLabel(this, localCursor3.getInt(0), localCursor3.getString(1)).toString();
              if (str24 == null) {
                break label695;
              }
              String str25 = str24.trim();
              String str26 = localCursor3.getString(2);
              if (str26 == null) {
                break label702;
              }
              for (String str27 = str26.trim();; str27 = "")
              {
                Vector localVector10 = this.data;
                Object[] arrayOfObject11 = new Object[3];
                arrayOfObject11[0] = Integer.valueOf(2);
                arrayOfObject11[1] = str25;
                arrayOfObject11[2] = str27;
                localVector10.add(arrayOfObject11);
                break;
                str25 = "";
                break label630;
              }
              localCursor3.close();
              Uri localUri4 = Uri.withAppendedPath(localUri1, Impl.IMS_DIRECTORY);
              Cursor localCursor4 = getContentResolver().query(localUri4, Impl.IMS_PROJECTION, Impl.IMS_SELECTION, null, null);
              int i4 = 0;
              if (localCursor4 == null) {
                break label922;
              }
              if (!localCursor4.moveToNext()) {
                break label915;
              }
              if (i4 != 0) {
                break label812;
              }
              Vector localVector9 = this.data;
              Object[] arrayOfObject10 = new Object[2];
              arrayOfObject10[0] = Integer.valueOf(1);
              arrayOfObject10[1] = getResources().getString(2131099816);
              localVector9.add(arrayOfObject10);
              i4 = 1;
              String str21 = localCursor4.getString(2);
              String str22 = this.impl.getImProtocolLabel(this, localCursor4.getInt(3), localCursor4.getString(4)).toString();
              if (str21 == null) {
                break label908;
              }
              for (String str23 = str21.trim();; str23 = "")
              {
                Vector localVector8 = this.data;
                Object[] arrayOfObject9 = new Object[3];
                arrayOfObject9[0] = Integer.valueOf(2);
                arrayOfObject9[1] = str22;
                arrayOfObject9[2] = str23;
                localVector8.add(arrayOfObject9);
                break;
              }
              localCursor4.close();
              Uri localUri5 = Uri.withAppendedPath(localUri1, Impl.POSTALS_DIRECTORY);
              Cursor localCursor5 = getContentResolver().query(localUri5, Impl.POSTALS_PROJECTION, Impl.POSTALS_SELECTION, null, null);
              int i5 = 0;
              if (localCursor5 == null) {
                break label1147;
              }
              if (!localCursor5.moveToNext()) {
                break label1140;
              }
              if (i5 != 0) {
                break label1018;
              }
              Vector localVector7 = this.data;
              Object[] arrayOfObject8 = new Object[2];
              arrayOfObject8[0] = Integer.valueOf(1);
              arrayOfObject8[1] = getResources().getString(2131099817);
              localVector7.add(arrayOfObject8);
              i5 = 1;
              String str17 = this.impl.getPostalTypeLabel(this, localCursor5.getInt(0), localCursor5.getString(1)).toString();
              if (str17 == null) {
                break label1126;
              }
              String str18 = str17.trim();
              String str19 = localCursor5.getString(2);
              if (str19 == null) {
                break label1133;
              }
              for (String str20 = str19.trim();; str20 = "")
              {
                Vector localVector6 = this.data;
                Object[] arrayOfObject7 = new Object[3];
                arrayOfObject7[0] = Integer.valueOf(2);
                arrayOfObject7[1] = str18;
                arrayOfObject7[2] = str20;
                localVector6.add(arrayOfObject7);
                break;
                str18 = "";
                break label1061;
              }
              localCursor5.close();
              Uri localUri6 = Uri.withAppendedPath(localUri1, Impl.ORGANIZATIONS_DIRECTORY);
              Cursor localCursor6 = getContentResolver().query(localUri6, Impl.ORGANIZATIONS_PROJECTION, Impl.ORGANIZATIONS_SELECTION, null, null);
              if (localCursor6 == null) {
                break label1490;
              }
              int i7 = 0;
              if (!localCursor6.moveToNext()) {
                break label1483;
              }
              if (i7 != 0) {
                break label1243;
              }
              Vector localVector5 = this.data;
              Object[] arrayOfObject6 = new Object[2];
              arrayOfObject6[0] = Integer.valueOf(1);
              arrayOfObject6[1] = getResources().getString(2131099818);
              localVector5.add(arrayOfObject6);
              i7 = 1;
              String str10 = this.impl.getOrganizationTypeLabel(this, localCursor6.getInt(0), localCursor6.getString(1)).toString();
              if (str10 == null) {
                break label1462;
              }
              String str11 = str10.trim();
              String str12 = localCursor6.getString(2);
              String str13 = localCursor6.getString(3);
              StringBuilder localStringBuilder2 = new StringBuilder();
              if (str12 == null) {
                break label1469;
              }
              String str14 = str12.trim();
              StringBuilder localStringBuilder3 = localStringBuilder2.append(str14).append(", ");
              if (str13 == null) {
                break label1476;
              }
              for (String str15 = str13.trim();; str15 = "")
              {
                String str16 = str15;
                if (str16.startsWith(", ")) {
                  str16 = str16.substring(2).trim();
                }
                if (str16.endsWith(", "))
                {
                  int i8 = -2 + str16.length();
                  str16 = str16.substring(0, i8).trim();
                }
                Vector localVector4 = this.data;
                Object[] arrayOfObject5 = new Object[3];
                arrayOfObject5[0] = Integer.valueOf(2);
                arrayOfObject5[1] = str11;
                arrayOfObject5[2] = str16;
                localVector4.add(arrayOfObject5);
                break;
                str11 = "";
                break label1286;
                str14 = "";
                break label1327;
              }
              localCursor6.close();
              Uri localUri7 = Uri.withAppendedPath(localUri1, Impl.NOTES_DIRECTORY);
              localCursor7 = getContentResolver().query(localUri7, Impl.NOTES_PROJECTION, Impl.NOTES_SELECTION, null, null);
            }
            if (localObject == null) {
              localObject = localBitmap2;
            }
            localVector1 = this.data;
            arrayOfObject2 = new Object[4];
            arrayOfObject2[0] = Integer.valueOf(0);
            arrayOfObject2[1] = str8;
            arrayOfObject2[2] = localObject;
            arrayOfObject2[3] = Integer.valueOf(i1);
            localVector1.add(arrayOfObject2);
            localCursor1.close();
            localUri2 = Uri.withAppendedPath(localUri1, Impl.PHONES_DIRECTORY);
            localCursor2 = getContentResolver().query(localUri2, Impl.PHONES_PROJECTION, Impl.PHONES_SELECTION, null, null);
            i2 = 0;
            if (localCursor2 == null) {
              break label491;
            }
            for (;;)
            {
              if (!localCursor2.moveToNext()) {
                break label484;
              }
              if (i2 == 0)
              {
                Vector localVector13 = this.data;
                Object[] arrayOfObject14 = new Object[2];
                arrayOfObject14[0] = Integer.valueOf(1);
                arrayOfObject14[1] = getResources().getString(2131099814);
                localVector13.add(arrayOfObject14);
                i2 = 1;
              }
              String str28 = this.impl.getPhoneTypeLabel(this, localCursor2.getInt(0), localCursor2.getString(1)).toString();
              if (str28 == null) {
                break;
              }
              str29 = str28.trim();
              String str30 = localCursor2.getString(2);
              if (str30 == null) {
                break label477;
              }
              str31 = str30.trim();
              Vector localVector12 = this.data;
              Object[] arrayOfObject13 = new Object[3];
              arrayOfObject13[0] = Integer.valueOf(2);
              arrayOfObject13[1] = str29;
              arrayOfObject13[2] = str31;
              localVector12.add(arrayOfObject13);
            }
          }
          label477:
          label484:
          label491:
          label630:
          label1018:
          label1147:
          Cursor localCursor7;
          label1126:
          label1133:
          label1140:
          if (localCursor7 != null)
          {
            int i6 = 0;
            while (localCursor7.moveToNext())
            {
              String str9 = localCursor7.getString(0);
              if ((str9 != null) && (str9.length() != 0))
              {
                if (i6 == 0)
                {
                  Vector localVector3 = this.data;
                  Object[] arrayOfObject4 = new Object[2];
                  arrayOfObject4[0] = Integer.valueOf(1);
                  arrayOfObject4[1] = getResources().getString(2131099819);
                  localVector3.add(arrayOfObject4);
                  i6 = 1;
                }
                Vector localVector2 = this.data;
                Object[] arrayOfObject3 = new Object[3];
                arrayOfObject3[0] = Integer.valueOf(2);
                arrayOfObject3[1] = null;
                arrayOfObject3[2] = str9;
                localVector2.add(arrayOfObject3);
              }
            }
            localCursor7.close();
          }
        }
      }
    }
    label812:
    label1327:
    label1462:
    label1469:
    label1476:
    int i = 0;
    label908:
    label915:
    label922:
    label1061:
    int j = this.data.size();
    label1286:
    if (i < j)
    {
      newPage();
      Object[] arrayOfObject1 = (Object[])this.data.elementAt(i);
      if (((Integer)arrayOfObject1[0]).intValue() == 0) {
        if (needNew(40, 200)) {
          i--;
        }
      }
      for (;;)
      {
        i++;
        break;
        Bitmap localBitmap1 = (Bitmap)arrayOfObject1[2];
        Paint localPaint3 = App.newPaint();
        this.canvas.drawBitmap(localBitmap1, new Rect(0, 0, localBitmap1.getWidth(), localBitmap1.getHeight()), new Rect(0, 0, (int)(150.0F * this.fontSizeCoef), (int)(150.0F * this.fontSizeCoef)), localPaint3);
        String str5 = (String)arrayOfObject1[1];
        Paint localPaint4 = App.newPaint();
        localPaint4.setStyle(Paint.Style.FILL);
        localPaint4.setColor(-16777216);
        int n = this.th;
        if (str5 != null) {}
        for (;;)
        {
          printText(str5, 65, false, 0.0F, 190, 95, 160, localPaint4);
          if (this.th - n <= 150) {
            break;
          }
          this.canvas.translate(0.0F, 20.0F * this.fontSizeCoef);
          this.th = ((int)(this.th + 20.0F * this.fontSizeCoef));
          break;
          str5 = "";
        }
        if (((Integer)arrayOfObject1[0]).intValue() == 1)
        {
          if (needNew(20, 50))
          {
            i--;
          }
          else
          {
            String str4 = (String)arrayOfObject1[1];
            Paint localPaint2 = App.newPaint();
            localPaint2.setStyle(Paint.Style.FILL);
            localPaint2.setColor(-16777216);
            printText(str4, 50, true, 0.0F, 0, 40, 50, localPaint2);
          }
        }
        else
        {
          if (!needNew(20, 50)) {
            break label2012;
          }
          i--;
        }
      }
      label2012:
      String str1 = (String)arrayOfObject1[1];
      String[] arrayOfString = ((String)arrayOfObject1[2]).split("\n");
      Paint localPaint1 = App.newPaint();
      localPaint1.setStyle(Paint.Style.FILL);
      localPaint1.setColor(-16777216);
      if (str1 == null)
      {
        if ((arrayOfString != null) && (arrayOfString.length > 0)) {}
        for (String str3 = arrayOfString[0];; str3 = "")
        {
          printText(str3, 50, false, 0.0F, 0, 40, 50, localPaint1);
          label2094:
          if (arrayOfString == null) {
            break label2210;
          }
          for (int k = 1;; k++)
          {
            int m = arrayOfString.length;
            if (k >= m) {
              break;
            }
            printText(arrayOfString[k], 50, false, 0.0F, 0, 40, 50, localPaint1);
          }
        }
      }
      StringBuilder localStringBuilder1 = new StringBuilder().append(str1).append(": ");
      if ((arrayOfString != null) && (arrayOfString.length > 0)) {}
      for (String str2 = arrayOfString[0];; str2 = "")
      {
        printText(str2, 50, false, 0.0F, 0, 40, 50, localPaint1);
        break label2094;
        label2210:
        break;
      }
    }
    addPage();
  }
  
  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    this.dat = getIntent().getExtras().getString("data");
    if (this.dat == null)
    {
      setResult(0);
      finish();
    }
  }
  
  static abstract class Impl
  {
    static Uri CONTACTS_CONTENT_URI;
    static String[] CONTACTS_PROJECTION;
    static String EMAILS_DIRECTORY;
    static String[] EMAILS_PROJECTION;
    static String EMAILS_SELECTION;
    static String IMS_DIRECTORY;
    static String[] IMS_PROJECTION;
    static String IMS_SELECTION;
    static String NOTES_DIRECTORY;
    static String[] NOTES_PROJECTION;
    static String NOTES_SELECTION;
    static String ORGANIZATIONS_DIRECTORY;
    static String[] ORGANIZATIONS_PROJECTION;
    static String ORGANIZATIONS_SELECTION;
    static String PHONES_DIRECTORY;
    static String[] PHONES_PROJECTION;
    static String PHONES_SELECTION;
    static String POSTALS_DIRECTORY;
    static String[] POSTALS_PROJECTION;
    static String POSTALS_SELECTION;
    
    static Impl getImpl()
    {
      if (Integer.parseInt(Build.VERSION.SDK) < 5) {
        return new ActivityPrintContacts.ImplOld(null);
      }
      return new ActivityPrintContacts.ImplNew(null);
    }
    
    abstract CharSequence getEmailTypeLabel(Context paramContext, int paramInt, String paramString);
    
    abstract CharSequence getImProtocolLabel(Context paramContext, int paramInt, String paramString);
    
    abstract CharSequence getImTypeLabel(Context paramContext, int paramInt, String paramString);
    
    abstract CharSequence getOrganizationTypeLabel(Context paramContext, int paramInt, String paramString);
    
    abstract CharSequence getPhoneTypeLabel(Context paramContext, int paramInt, String paramString);
    
    abstract CharSequence getPostalTypeLabel(Context paramContext, int paramInt, String paramString);
    
    abstract Bitmap loadContactPhoto(Context paramContext, long paramLong, BitmapFactory.Options paramOptions);
  }
  
  private static class ImplNew
    extends ActivityPrintContacts.Impl
  {
    static
    {
      CONTACTS_CONTENT_URI = ContactsContract.Contacts.CONTENT_URI;
      CONTACTS_PROJECTION = new String[] { "display_name", "starred", "photo_id" };
      PHONES_DIRECTORY = "data";
      PHONES_SELECTION = "mimetype='vnd.android.cursor.item/phone_v2'";
      PHONES_PROJECTION = new String[] { "data2", "data3", "data1" };
      EMAILS_DIRECTORY = "data";
      EMAILS_SELECTION = "mimetype='vnd.android.cursor.item/email_v2'";
      EMAILS_PROJECTION = new String[] { "data2", "data3", "data1" };
      IMS_DIRECTORY = "data";
      IMS_SELECTION = "mimetype='vnd.android.cursor.item/im'";
      IMS_PROJECTION = new String[] { "data2", "data3", "data1", "data5", "data6" };
      POSTALS_DIRECTORY = "data";
      POSTALS_SELECTION = "mimetype='vnd.android.cursor.item/postal-address_v2'";
      POSTALS_PROJECTION = new String[] { "data2", "data3", "data1" };
      ORGANIZATIONS_DIRECTORY = "data";
      ORGANIZATIONS_SELECTION = "mimetype='vnd.android.cursor.item/organization'";
      ORGANIZATIONS_PROJECTION = new String[] { "data2", "data3", "data1", "data4" };
      NOTES_DIRECTORY = "data";
      NOTES_SELECTION = "mimetype='vnd.android.cursor.item/note'";
      NOTES_PROJECTION = new String[] { "data1" };
    }
    
    CharSequence getEmailTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.Email.getTypeLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    CharSequence getImProtocolLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.Im.getProtocolLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    CharSequence getImTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.Im.getTypeLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    CharSequence getOrganizationTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.Organization.getTypeLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    CharSequence getPhoneTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.Phone.getTypeLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    CharSequence getPostalTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return ContactsContract.CommonDataKinds.StructuredPostal.getTypeLabel(paramContext.getResources(), paramInt, paramString);
    }
    
    Bitmap loadContactPhoto(Context paramContext, long paramLong, BitmapFactory.Options paramOptions)
    {
      Cursor localCursor = null;
      try
      {
        localCursor = paramContext.getContentResolver().query(ContentUris.withAppendedId(ContactsContract.Data.CONTENT_URI, paramLong), new String[] { "data15" }, null, null, null);
        boolean bool1 = localCursor.moveToFirst();
        Object localObject2 = null;
        if (bool1)
        {
          boolean bool2 = localCursor.isNull(0);
          localObject2 = null;
          if (!bool2)
          {
            byte[] arrayOfByte = localCursor.getBlob(0);
            Bitmap localBitmap = BitmapFactory.decodeByteArray(arrayOfByte, 0, arrayOfByte.length, paramOptions);
            localObject2 = localBitmap;
          }
        }
        return localObject2;
      }
      finally
      {
        if (localCursor != null) {
          localCursor.close();
        }
      }
    }
  }
  
  private static class ImplOld
    extends ActivityPrintContacts.Impl
  {
    static
    {
      CONTACTS_CONTENT_URI = Contacts.People.CONTENT_URI;
      CONTACTS_PROJECTION = new String[] { "display_name", "starred", "_id", "notes" };
      PHONES_DIRECTORY = "phones";
      PHONES_SELECTION = null;
      PHONES_PROJECTION = new String[] { "type", "label", "number" };
      EMAILS_DIRECTORY = "contact_methods";
      EMAILS_SELECTION = "kind=1";
      EMAILS_PROJECTION = new String[] { "type", "label", "data" };
      IMS_DIRECTORY = "contact_methods";
      IMS_SELECTION = "kind=3";
      IMS_PROJECTION = new String[] { "type", "label", "data", "type", "aux_data" };
      POSTALS_DIRECTORY = "contact_methods";
      POSTALS_SELECTION = "kind=2";
      POSTALS_PROJECTION = new String[] { "type", "label", "data" };
      ORGANIZATIONS_DIRECTORY = "organizations";
      ORGANIZATIONS_SELECTION = null;
      ORGANIZATIONS_PROJECTION = new String[] { "type", "label", "company", "title" };
      NOTES_DIRECTORY = "";
      NOTES_SELECTION = null;
      NOTES_PROJECTION = new String[] { "notes" };
    }
    
    CharSequence getEmailTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return Contacts.ContactMethods.getDisplayLabel(paramContext, 1, paramInt, paramString);
    }
    
    CharSequence getImProtocolLabel(Context paramContext, int paramInt, String paramString)
    {
      String str = paramString;
      if (str == null) {
        str = "";
      }
      if (str.startsWith("pre:")) {
        switch (Integer.parseInt(str.substring(4)))
        {
        }
      }
      while (!str.startsWith("custom:"))
      {
        return "";
        return "AIM";
        return "Google Talk";
        return "ICQ";
        return "Jabber";
        return "MSN";
        return "QQ";
        return "Skype";
        return "Yahoo";
      }
      return str.substring(7);
    }
    
    CharSequence getImTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return Contacts.ContactMethods.getDisplayLabel(paramContext, 3, paramInt, paramString);
    }
    
    CharSequence getOrganizationTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return Contacts.Organizations.getDisplayLabel(paramContext, paramInt, paramString);
    }
    
    CharSequence getPhoneTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return Contacts.Phones.getDisplayLabel(paramContext, paramInt, paramString);
    }
    
    CharSequence getPostalTypeLabel(Context paramContext, int paramInt, String paramString)
    {
      return Contacts.ContactMethods.getDisplayLabel(paramContext, 2, paramInt, paramString);
    }
    
    Bitmap loadContactPhoto(Context paramContext, long paramLong, BitmapFactory.Options paramOptions)
    {
      Cursor localCursor = null;
      try
      {
        localCursor = paramContext.getContentResolver().query(Uri.withAppendedPath(Uri.withAppendedPath(Contacts.People.CONTENT_URI, String.valueOf(paramLong)), "photo"), new String[] { "data" }, null, null, null);
        boolean bool1 = localCursor.moveToFirst();
        Object localObject2 = null;
        if (bool1)
        {
          boolean bool2 = localCursor.isNull(0);
          localObject2 = null;
          if (!bool2)
          {
            byte[] arrayOfByte = localCursor.getBlob(0);
            Bitmap localBitmap = BitmapFactory.decodeByteArray(arrayOfByte, 0, arrayOfByte.length, paramOptions);
            localObject2 = localBitmap;
          }
        }
        return localObject2;
      }
      finally
      {
        if (localCursor != null) {
          localCursor.close();
        }
      }
    }
  }
}


/* Location:           C:\Users\Admin\Desktop\Decompiler\JAD\jd-gui-0.3.6.windows\classes_dex2jar.jar
 * Qualified Name:     com.dynamixsoftware.printershare.ActivityPrintContacts
 * JD-Core Version:    0.7.0.1
 */